package com.ruoyi.cpsp.service;/*
    @author neu.xiangwenjuan
    @create 2022/4/15
*/

import com.ruoyi.cpsp.domain.EvaluateRecordDetail;
import com.ruoyi.cpsp.domain.EvaluateRecordDetailEn;
import com.ruoyi.cpsp.domain.EvaluateRecordEntity;

import java.util.List;

public interface EvaluateRecordDetailService {

    List<EvaluateRecordDetailEn> selectAllDetail(String departmentId);

    List<EvaluateRecordDetailEn> selectDetailByEmployee(String employeeIdCard);

    List<EvaluateRecordDetailEn> selectDetailByEmployeeYear(String employeeIdCard, Integer year, Integer quarter);

    List<EvaluateRecordDetailEn> selectByDepart(String department, String teamGroup, String startTime, String endTime);

    EvaluateRecordDetail selectByPrimaryKey(Integer id);

    int insertDetail(EvaluateRecordDetail evaluateRecordDetail);

    int deleteRecordDetail(Integer id);

    EvaluateRecordDetailEn selectDetailById(Integer id);

    int updateByIdSelective(EvaluateRecordDetail evaluateRecordDetail);

    // 添加违章、删除违章或者修改违章时，得到关联人员的身份证号列表employeeIdCards，对这些员工的当前季度绩效表进行更新。
    boolean updateCurrentPerformanceData(List<String> employeeIdCards, EvaluateRecordEntity record);

    List<String> getEvaluateCardList(Integer year,
                                     Integer quarter);
}
